import 'package:boss/ui/widget/center_title_app_bar.dart';
import 'package:flutter/material.dart';
import 'package:hi_common/hi_common.dart';
import 'package:provider/provider.dart';
import 'package:router/annotation.dart';

import 'provider/package_provider.dart';
import 'widget/packaging_fee_browser.dart';

@RouterConfig(PackagingFeeSettingPage.pageName)
class PackagingFeeSettingPage extends StatefulWidget {
  static const pageName = '/packagingFeeSettingPage';

  @override
  _PackagingFeeSettingPageState createState() => _PackagingFeeSettingPageState('包装费用设置');
}

class _PackagingFeeSettingPageState extends BaseState<PackagingFeeSettingPage> {
  _PackagingFeeSettingPageState(String pageName) : super(pageName);

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      create: (context) => PackageProvider(),
      child: Scaffold(
        appBar: CenterTitleAppBar(title: '包装费用设置'),
        body: PackagingFeeBrowser(),
      ),
    );
  }
}
